elixir impl of Keypad.