added pause and keybord actions