What is one way that you could check whether the right arrow key on the user’s keyboard was pressed?
What will be an ideal response?
To listen for whether the right arrow key was pressed, you would create an
event listener for the KEY_DOWN event, and in the event handling function create
a conditional statement to determine if the right key was pressed.
```
//within a keyboard event handling function with an event
¬ parameter of “e”:
if(e.keyCode == Keyboard.RIGHT){
//do something
}
```
You might also like to view...
The ________ Principle means that inconsistent or inaccurate data leads to inconsistent or inaccurate output
Fill in the blank(s) with correct word
In a calculated control, a combination of field names, properties, constants, or operators is called a(n) ________
Fill in the blank(s) with correct word
Tomas is reviewing a job application form. Information on gender is requested, but so far as he knows this isn’t taken into account anywhere in the hiring process. This is an example of a violation of the law of ____
a. Conservation of information b. Utilization of information c. Logical data flow d. Data integrity
Returning a message was one of the first error-control techniques developed.?
Answer the following statement true (T) or false (F)