Added "keyPressed" event