Fixed bug to ignore keypresses if the new task modal is shown