Remove unnecessary ternary setting lastval.
Put back commenting out of obscure error clearing.

It's done us no harm for a long time now, let sleeping dogs lie.
Remove interrupt status on return to main keymap.