ID:907351
 
Problem description:
If I wanted something to happen while a key was being held, or even multiple keys, how do I go about this? Say I want an energy beam to persist while a player holds a single key, how do I go about it? Or if I felt the need to have one button held that could boost the power of the attack, how would I handle the input from both keys? Thanks in advance for any help!
http://www.byond.com/developer/Forum_account/Keyboard

I'm sure this'll provide you with what you are wanting.