puppet-mode and keyboard fixes

Signed-off-by: Wilson Júnior <wilsonpjunior@gmail.com>