Add method for checking key access.