uinput: Don't write events unless something changed.
uinput: Small speedup by pre-resolving key codes and modifiers.
actions: Fix typo.