You shouldn't have to check a keypress more than once. Make a sheet called input, and include it in every layout. Then when W is pressed +1 to a variable, then you only have to check if the variable is higher than 0 ? this way you never have to replace input code that is scattered through the project.
<img src="https://dl.dropbox.com/u/1024727/c2/input1.PNG" border="0" />
If you want to see if a button is pressed just check if it equals 1:
<img src="https://dl.dropbox.com/u/1024727/c2/input2.PNG" border="0" />
if you want to see if the input is being held down check if its greater than 0:
<img src="https://dl.dropbox.com/u/1024727/c2/input3.PNG" border="0" />
(Though for my actual game I use keycode stuff so it can be customizable input.)