added helper to help with complex key presses