Documentation says returning true blocks the key from being processed by the game. It appears that this is only the case when the chat box is open.