Stuck in Subcategory While Entering New Transaction

If while entering transactions you somehow missed the category and went straight to
the subcategory, it will not let you do anything. It will tell you that I have
tried to assign a null value.
Just press Esc on your keyboard (top left)