More work on selectionkey creation