Access keys() for both dict and RequesContext