I did it in my latest version. Note that because for some keys only one case is handled, more returns are needed, so it's a question of taste if that's simpler. But it does have only one place to call `preventDefault()`, which is nicer.