fixes access keys attribute in knife show 

this fixes #1974 
This additional code seems too similar to the check on line 185 below.  Can you remove this addition and instead move the elsif from line 185 above the elsif on line 183?  All these line numbers are from the new version of the file.