h6. [[OS SWI Calls]] h6(. » [[OS_Byte]] h6((. » OS_Byte 121 h2. OS_Byte 121 h5. (SWI &06) |_<^{width:3em}. Entry | | |<^. R0|<^. 121 (&79) | |<^. R1|<^. [[Keyboard Scan Codes|Key]] to start at, or key EOR &80 for single key | |_<^{width:3em}. Exit|_<^. | |<^. R0|<^. Preserved | |/2<^. R1|<^. For range check: key pressed, or &FF if none pressed | |<^. For single key: &FF if key pressed, or other if not | |<^. R2|<^. Corrupted | h4. Use The purpose of this call is to check which keys are being pressed. h4. Notes This call can also be used to determine which mouse button has be clicked. [[OS_Byte 122]] is identical to this call, except that it ignore any key that has a value of less than 16. This includes; Shift, Ctrl, Alt and mouse keys. h4. See also * [[Keyboard Scan Codes]] * [[OS_Byte]] * [[OS_Byte 122]]