keys

From The K Language Wiki
Keys
!d

keys is a primitive that returns the list of keys of a dictionary.

 d:`a`b!0 1
 !d
`a`b