Toggle: Fix arrow key handling

Fixes #5403