add try catch for keybindings api
add Window API