Yes it is illegal to keep it in Nebraska. Im pretty sure that the law says that all turtles have to be larger than 4" to keep and sell unless you are a breeder. I would release it immediately.