If it's a separate keyboard (e.g. for a desktop) as opposed to a latop keyboard, if it can't be fixed easily (and designs vary, so it's difficult to give specific advice), just buy a new keyboard - a basic one is very inexpensive.
Best phone camera 2017
Stunning new film posters by Hattie Stewart, Joe Cruz & more
iPad Pro 10.5in (2017) review
28 astuces pour profiter au mieux de votre iPhone