Hi,
I'm trying to write a little space shooter game in a java applet to put on my website.
In previous games the action is a little more sedate and have had to worry about quick/exact responses from the keyboard. So have just add a KeyListener and checked for KeyPresses like below
public void keyPressed(KeyEvent e) {
if (e.getKeyCode() == e.VK_KP_LEFT ||
e.getKeyCode() == e.VK_LEFT) {
ship.moveLeft();
}
}
But for a fluid game i need something alot smarter

I guess I'm looking for a way of checking the keyboard state or something, so i could poll the keyboard and see at any stage which keys are pressed. eg. Left arrow, Up arrow and the control key
Does anyone know an easyish way of getting this information from inside an applet? or can point me to somewhere that might have a bit of info on the topic.
Thanks
Andy