added window functions to press keys, changed bindings