KeyEvent.pressed

true if the key was just pressed, false if it was just released. note: released events aren't always sent...

struct KeyEvent
bool pressed;

Meta