input rails is a simple plugin allowing you to restrict certain key types such as letters and numbers