[PATCH v3 2/2] Edit keyboard.c so that update_lock_state() clears stale key down if the lock states match.