When buying a keyboard, there are several key features to consider. Firstly, the type of keyboard mechanism, whether it's membrane, mechanical, or scissor switch. Secondly, the keyboard layout and size, whether it's full-size, tenkeyless, or compact. Other important factors include ergonomic design, compatibility with your device, connectivity options, and additional features like backlit keys and programmable keys.