Made window key on click (Issue #4)