Doc: RightKey( )
RightKey - check if the right arrow key is pressed down.
Syntax
pressed = RightKey( )
- pressed - True / False, depending on if the right arrow key is pressed down
Explanation
RightKey() checks if the right arrow key is currently pressed down.
Examples
Check if Right Arrow Key Pressed
The example code below checks to see if the right arrow key has been pressed down.
SetFPS 60
Do
Cls 0
If RightKey() Then Print "Right Key Pressed"
Sync
Loop
Related Pages
Check Other Arrow Keys
- UpKey() - check if the up arrow key is pressed down
- DownKey() - check if the down arrow key is pressed down
- LeftKey() - check if the left arrow key is pressed down
Check Letter Keys
- KeyState() - check if a letter key or other special key is pressed down by scancode
Check Other Common Keys
Source Code
Tutorials
| Categories: Functions : Input : Keyboard |