Fix context bug and change input field event so tab doesnt trigger it