added keysIn function