How to use keyof typeof operator

To make your code robust