Do you think this and the following 2 lines could be encapsulated into a method in the `Keypad` object? It seems like it would be better to be able to instantiate that and ask it to do the switch, rather than having to have that logic in the `MessageThread`.