Fix keyboard message operation.